﻿<UserControl x:Class="DACU.UserControls.Player.PlayerControl"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
			 xmlns:my="clr-namespace:DACU.UserControls.Player" mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid>
		<Grid.RowDefinitions>
			<RowDefinition Height="Auto" />
			<RowDefinition Height="Auto" />
			<RowDefinition Height="*" />
		</Grid.RowDefinitions>
		<StackPanel Orientation="Horizontal">
			<ToggleButton Content="{Binding IsShuffle,Converter={StaticResource BoolToShuffle}}" IsChecked="{Binding IsShuffle}" />
			<ToggleButton Content="{Binding IsFileLoop,Converter={StaticResource BoolToOnOff}}" IsChecked="{Binding IsFileLoop}" ToolTip="File loop" />
			<ToggleButton Content="{Binding IsListLoop,Converter={StaticResource BoolToOnOff}}" IsChecked="{Binding IsListLoop}" ToolTip="List loop" IsEnabled="{Binding IsShuffle, Converter={StaticResource ReverseBool}}" />
		</StackPanel>
		<my:PlayerNavigation Grid.Row="1" x:Name="playerNavigation1" x:FieldModifier="private" VolumeChanged="playerNavigation1_VolumeChanged" PrevTrigered="playerNavigation1_PrevTrigered" NextTrigered="playerNavigation1_NextTrigered" PlayPauseTrigered="playerNavigation1_PlayPauseTrigered" StopTrigered="playerNavigation1_StopTrigered" />
		<my:PlayList Grid.Row="2" x:Name="playList1" x:FieldModifier="private" TrackChanged="playList1_TrackChanged" />
	</Grid>
</UserControl>
